using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace FrameWorkSystem
{
    public partial class frmPrintPreview : DevComponents.DotNetBar.Office2007Form 
    {
        public frmPrintPreview()
        {
            InitializeComponent();            
        }
        public void LoadDataPrint(CrystalDecisions.CrystalReports.Engine.ReportClass report)
        {
            CRV1.ReportSource = report;            
            CRV1.RefreshReport();
            this.Refresh();
        }
        protected override void OnKeyDown(KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Escape)
                this.Close();
            base.OnKeyDown(e);
        }
    }
}